package es.uned.hoomgle.core.dtos;

import java.util.List;

import es.uned.hoomgle.hibernate.beans.impl.City;
import es.uned.hoomgle.hibernate.beans.interfaces.StateI;

public class StateDto implements StateI {
 
	private Integer id; 
	private String name;
	private List <City> cityList;
	
	@Override
	public Integer getId() {
		return this.id;
	}

	@Override
	public void setId(Integer id) {
		this.id=id;
		
	}

	@Override
	public void setName(String name) {
		this.name=name;
		
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public List<City> getCityList() {
		return this.cityList;
	}

	@Override
	public void setCityList(List<City> cityList) {
	    this.cityList=cityList;
	}
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("StateDto [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(getName());
		builder.append(", cityList=");
		builder.append(getCityList());
		builder.append("]");
		return builder.toString();
	}

}
